package agent.model.royaume;

import agent.behaviour.LiveBehaviour;
import agent.behaviour.ReadMailBehaviour;
import agent.behaviour.ReportBehaviour;
import agent.enums.Ressource;
import agent.enums.TypeAgent;
import agent.model.AbstractAgent;

public class AgentCitoyen extends AbstractAgent {

	private static final long serialVersionUID = 1L;

	@Override
	protected void setup() {
		Object[] arguments = getArguments();

		setAgent(TypeAgent.Citoyen);
		setRessourceProduite(Ressource.Paix);
		setRessourceConsommee(Ressource.Bijou);

		super.setup();

		setComportement(new LiveBehaviour(this, (int)arguments[2]));
		addBehaviour(getComportement());
		addBehaviour(new ReadMailBehaviour(this));
		addBehaviour(new ReportBehaviour(this));
	}

}
